package org.iks.feign.service.store;

import org.iks.common.AjaxResult;
import org.iks.common.pojo.message.ChatMessageStoreVo;
import org.iks.common.pojo.user.UserInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Author kzou
 * Date 2024/2/15
 * Description:
 */
@FeignClient(value = "xim-store", path = "/store")
public interface SessionRemoteService {

    @PostMapping("/member/query")
    AjaxResult<List<UserInfoVo>> queryMembers(Integer sessionId);

    @PostMapping("/message/save/chatMessage")
    AjaxResult<?> saveChatMessage(@RequestBody ChatMessageStoreVo message);

    @PostMapping("/session/create/default")
    AjaxResult<?> createDefaultSession(@RequestParam("friendAccount") String userAccount);

}
